package com.cf.game.cowboy;

import com.cf.game.Player;

/**
 * cf-game-MessageHandler
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/3/27 14:28
 */
public interface MessageHandler<T, Game> {

    /**
     * 处理消息
     *
     * @param message
     */
    void handle(Player player, Game game, T message);

    /**
     * 当前handler是否支持该消息
     *
     * @param clazz
     * @return
     */
    boolean support(Class clazz);


}
